package com.twu.biblioteca;

public class Movie extends LibraryItem {
    private int year;
    private String director;
    private String rating;

    public Movie(String name) {
        super(name);
    }

    public Movie(String name, int year, String director, String rating) {
        super(name);
        setYear(year);
        setDirector(director);
        setRating(rating);
    }

    public void setYear(int year) { this.year = year; }
    public void setDirector(String director) { this.director = director; }
    public void setRating(String rating) { this.rating = rating; }

    public int getYear() { return year; }
    public String getDirector() { return director; }
    public String getRating() { return rating; }
    public LibraryItemType getType() { return LibraryItemType.Movie; }
}
